home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Sound / LAME / WarpOS / src / mpglib / layer2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-01  |  1.2 KB  |  42 lines

  1. /*
  2. ** Copyright (C) 2000 Albert L. Faber
  3. **  
  4. ** This program is free software; you can redistribute it and/or modify
  5. ** it under the terms of the GNU General Public License as published by
  6. ** the Free Software Foundation; either version 2 of the License, or
  7. ** (at your option) any later version.
  8. ** 
  9. ** This program is distributed in the hope that it will be useful,
  10. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ** GNU General Public License for more details.
  13. ** 
  14. ** You should have received a copy of the GNU General Public License
  15. ** along with this program; if not, write to the Free Software 
  16. ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18.  
  19. #ifdef USE_LAYER_2
  20.  
  21. #ifndef LAYER2_H_INCLUDED
  22. #define LAYER2_H_INCLUDED
  23.  
  24.  
  25. struct al_table2 
  26. {
  27.   short bits;
  28.   short d;
  29. };
  30.  
  31.  
  32.  
  33. void init_layer2(void);
  34. void II_step_one(unsigned int *bit_alloc,int *scale,struct frame *fr);
  35. void II_step_two(unsigned int *bit_alloc,real fraction[2][4][SBLIMIT],int *scale,struct frame *fr,int x1);
  36. int  do_layer2( PMPSTR mp,unsigned char *pcm_sample,int *pcm_point);
  37.  
  38. #endif
  39.  
  40. #endif
  41.  
  42.